From: kfraser@dhcp93.uk.xensource.com Date: Wed, 31 May 2006 13:23:00 +0000 (+0100) Subject: [SVM] Remove redundant MAX_INST_SIZE definition. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16013^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=ee2ac658800492bf1a04dcd67c461c63aa204137;p=xen.git [SVM] Remove redundant MAX_INST_SIZE definition. Signed off by: Mats Petersson --- diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index bf7f474af5..561ca00a79 100644 --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -51,9 +51,6 @@ #define SVM_EXTRA_DEBUG -/* Useful define */ -#define MAX_INST_SIZE 15 - #define set_segment_register(name, value) \ __asm__ __volatile__ ( "movw %%ax ,%%" STR(name) "" : : "a" (value) ) @@ -2155,7 +2152,7 @@ static void svm_debug_restore_cpu_user_regs(struct cpu_user_regs *regs) void svm_handle_invlpg(const short invlpga, struct cpu_user_regs *regs) { struct vcpu *v = current; - u8 opcode[MAX_INST_SIZE], prefix, length = MAX_INST_SIZE; + u8 opcode[MAX_INST_LEN], prefix, length = MAX_INST_LEN; unsigned long g_vaddr; int inst_len; struct vmcb_struct *vmcb = v->arch.hvm_svm.vmcb;